﻿using System;
using System.Windows.Media.Imaging;

namespace Silver3D.Graphics
{
    public class RenderContext
    {
        public WriteableBitmap FrameBuffer { get; set; }

        public Scene Scene { get; set; }

        public float[] DepthBuffer { get; set; }

        public RenderContext()
        {
        }

        public void Resize(int width, int height)
        {
            FrameBuffer = new WriteableBitmap(width, height);
            DepthBuffer = new float[width * height];
        }
    }
}
